<template>
	<view>
		<view v-for="item in 10" :key="item" class="white-box margin32" @click="goPage('/views/mine/detail')">
			<view class="flex start font30 fontbold-500">
				<image :src="IMAGE_URL + '/static/mine/title-icon.png'" class="title-icon"></image>
				<view>生活小贴士</view>
			</view>
			<view class="item-content font28">
				如何正确预防颈椎病？
			</view>
			<view class="flex btn-group start font24">
				<view class="flex">
					<i class="iconfont icon-fenxiang font28" style="margin-left: 0;"></i>
					<view>12</view>
				</view>
				<view class="flex">
					<i class="iconfont icon-star font28"></i>
					<view>434</view>
				</view>
				<view class="flex">
					<i class="iconfont icon-comment font28"></i>
					<view>1212</view>
				</view>
			</view>
			<view class="flex between font24 item-footer">
				<view class="time font24">4小时前</view>
				<view class="flex">
					<i class="iconfont icon-del"></i>
					<view>删除</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
import appConfig from '@/config/app.js'
export default {
  data() {
    return { IMAGE_URL: appConfig.IMAGE_URL }
  }
}
</script>

<style lang="scss" scoped>
	.margin32 {
		margin: 0 32rpx;
	}
	
	.white-box {
		background: $uni-bg-color;
		box-shadow: 0rpx 4rpx 20rpx 0rpx rgba(0, 0, 0, 0.1);
		border-radius: 20rpx;
		padding: 28rpx;
		box-sizing: border-box;
		margin-bottom: 28rpx;
		
		.title-icon {
			width: 32rpx;
			height: 24rpx;
			margin-right: 4rpx;
		}
		
		.item-content {
			margin: 28rpx 0;
		}
		
		.btn-group {
			color: $uni-text-color;
			margin-bottom: 30rpx;
		
			.iconfont {
				margin: 0 4rpx 0 28rpx;
			}
		}
		
		.item-footer {
			color: $uni-text-color-grey1;
			
			.time {
				color: $uni-text-color-grey;
			}
			
			.iconfont {
				font-size: 32rpx;
				margin-right: 4rpx;
			}
		}
	}
</style>